import request from '@/utils/request'

// 获取首页基本统计数据
export function getBasicData(data) {
  return request({
    url: '/kenuo/statics/getBasicData?mode=' + data.mode,
    method: 'get',

  })
}
// 获取首页图表统计数据
export function getChartsData(data) {
  return request({
    url: '/kenuo/statics/getIndexTb',
    method: 'post',

  })
}
//获取聚合数据
export function getCountryData(data) {
  return request({
    url: '/kenuo/statics/getIndexDt',
    method: 'post',
    data:data
  })
}

// 盆地获取首页图表统计数据
export function getCountryDataPendi(data) {
  return request({
    url: '/kenuo/equ/getIndexDt',
    method: 'post',
    data:data
  })
}

//获取人数在线的数量 ：
export function getOnLineCountNum(data) {
  return request({
    url: '/monitor/online/getOnLineCount',
    method: 'post',
    data:data
  })
}

//获取设备总数量/绑定数量、销售数量 

export function getTotalCountNum(data) {
  return request({
    url: '/kenuo/equ/getTotalCount',
    method: 'post',
    data:data
  })
}
//获取本年度销售数量

export function getYearSaleCountNum(data) {
  return request({
    url: '/kenuo/equ/getYearSaleCount',
    method: 'post',
    data:data
  })
}